<?php
/**
* Template designed by 12leaves.com
* 12leaves.com - Free ecommerce templates and design services
*
* Common Template
* 
* @package templateSystem
* @copyright Copyright 2009-2010 12leaves.com
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
*/
?>

<?php
  // Display all header alerts via messageStack:
  if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
  }
  if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
  echo htmlspecialchars(urldecode($_GET['error_message']));
  }
  if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
   echo htmlspecialchars($_GET['info_message']);
} else {

}

?>


<!--bof-header logo and navigation display-->
<?php
if (!isset($flag_disable_header) || !$flag_disable_header) {
?>

<div class="header">
<!-- 头部LOGO及其它组件 -->


			<div class="top_bar">
            	<div class="login_info">
                	<div class="welcome_msg">
                    	访客您好，欢迎光临雅士尚品。
                    </div>
                    
              <?php if ($_SESSION['customer_id']) { ?>
        
        		<a class="btn_login btn"  href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo ($_SESSION['customer_first_name'].' '.$_SESSION['customer_last_name']);?></a>
        	
           		<a  class="btn_signup btn" href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a>
        	
                <?php
                      } else {
                        if (STORE_STATUS == '0') {
                ?>
       		
                <a class="btn_login btn" href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a>
                
            	<a class="btn_signup btn" href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_REGISTER; ?></a>
               
            <?php } } ?>
                   
                </div>
      
            	<div class="shopping_cart">
            	<?php require($template->get_template_dir('tpl_shopping_cart_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_shopping_cart_header.php'); 
			        echo $content;
	             ?>
	             
                </div>
            </div>
            <div class="clearfix">
            	<div class="logo_area">
                	<h1><a href="#"><img src="images/common/logo_yeps.png" alt="YEPS雅士尚品" title="YEPS雅士尚品" /></a></h1>
                    <h2><img src="images/common/logo_slogan.gif" alt="职业时尚正装品牌●源自英国" title="职业时尚正装品牌●源自英国" /></h2>
                </div>
                <div class="contact_area">
                	<div class="hotline">
                    	<img src="images/common/txt_hotline.png" alt="用户热线：" title="用户热线：" /> <br />
                        <span class="tel">+755 1234 1234</span>
                    </div>
                    <a class="btn_cs" href="#">联系客服</a>
                </div>
            </div>
            <div class="keywords_wrapper">
            	<!-- 
            	<div class="keywords">热门关键字：<a href="#">西装</a> <a href="#">帅气</a> <a href="#">OL</a> <a href="#">法式叠袖衬衫</a> <a href="#">意大利进口手工成衣</a> <a href="#">西装</a> <a href="#">帅气</a> <a href="#">OL</a> <a href="#">法式叠袖衬衫</a> <a href="#">意大利进口手工成衣</a> </div>
            	      -->
	             <?php require($template->get_template_dir('tpl_search_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_search_header.php');?>
    	
            </div>
        </div>

<!--eof-branding display-->

<!--eof-header logo and navigation display-->

<!--bof-optional categories tabs navigation display-->
<?php /*require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php');*/ ?>
<!--eof-optional categories tabs navigation display-->

<?php require($template->get_template_dir('tpl_top_nav.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_top_nav.php'); ?>


<?php } ?>